var Id;
var $;
var from;
var wellids;
var dbname;
layui.use(['form', 'colorpicker', 'layer'], function () {
  $ = layui.$;
  from = layui.form;

})

function child(wellid, name, id, depth, depthend, nat) {
  wellids = wellid;
  dbname = name;
  Id = id;
  $("#dep1").val(depth);
  $("#dep2").val(depthend);
  $("#n1").val(nat);
  from.render('select');
}

var resdata = function () {
  var dep1 = $("#dep1").val();
  var dep2 = $("#dep2").val();
  var nat = $("#n1").val();
  // var getoken = GetToken(dataobj);
  let relt;
  $.ajax({
    type: "post",
    url: api_address + "/gd/UpdateFluordata?wellid=" + wellids + "&dbname=" + dbname + "&depth=" + dep1 + "&depthend=" + dep2 + "&nat=" + nat + "&id=" + Id,
    contentType: 'application/json;',
    async: false,
    headers: {
      Authorization: getoken
    },
    success: function (res) {
      var resdata = JSON.parse(res);
      if (resdata.code == 200) {
        relt = 200;
      }
    }
  })
  return relt;
}